<template>
    <h3>Parent</h3>
    <Child title="父节点数据" demo="测试"/>
    <Child :title="msg" :age="age" :names="names" :userinfo="userinfo"/>
</template>
<script>
import Child from './Child.vue'
    export default{
        data(){
            return{
                msg:"动态",
                age:20,
                names:['1','2','3'],
                userinfo:{
                    name:'123',
                    age:30
                }
            }
        },
        components:{
            Child
        }
    }
</script>